import request from '@/utils/request'

// 查询定量信息列表
export function listQuan(query) {
  return request({
    url: '/truth/quan/list',
    method: 'get',
    params: query
  })
}

// 查询定量信息详细
export function getQuan(quanId) {
  return request({
    url: '/truth/quan/' + quanId,
    method: 'get'
  })
}

// 新增定量信息
export function addQuan(data) {
  return request({
    url: '/truth/quan',
    method: 'post',
    data: data
  })
}

// 修改定量信息
export function updateQuan(data) {
  return request({
    url: '/truth/quan',
    method: 'put',
    data: data
  })
}

// 删除定量信息
export function delQuan(quanId) {
  return request({
    url: '/truth/quan/' + quanId,
    method: 'delete'
  })
}
